package com.bwie.aliyun.remote;

import com.bwie.common.core.domain.Result;
import com.bwie.doctor.domain.po.MedRegistered;
import com.bwie.doctor.domain.vo.MedDoctorVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("bwie-doctor")
public interface RemotDocker {

    /**
     * 根据常见病查询医生
     * @param symptomName
     * @return
     */
    @GetMapping("/queryDoctorList/{symptomName}")
    public List<MedDoctorVo> queryDoctorList(@PathVariable  String symptomName);

    /**
     * 取消挂号
     * @param realName
     * @param patientName
     * @return
     */
    @PostMapping("/registered/{realName}/{patientName}")
    public Result cancelDoctorState(@PathVariable String realName, @PathVariable String patientName);

    /**
     * 新增挂号
     * @return
     */
    @PostMapping("/register/{dockerName}/{patientName}")
    public Result registered(@PathVariable String dockerName,@PathVariable String patientName);


    /**
     * 查询患者挂号
     */
    @GetMapping("/registerdFindByi/{realName}")
    public Result<MedRegistered> registerdFindByi(@PathVariable String realName);
}
